﻿using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace RollToExcel.UnitTests
{
    [TestClass]
    public class ExporterTest
    {
        [TestMethod]
        public void ExportTest()
        {
            var excelTemplate = new FileInfo(@".\MemberImport.xls");
            var databaseQuery = new FileInfo(@".\GetMembers.sql");
            var target = new Exporter(databaseQuery,excelTemplate);
            var file =  target.Export();
            Assert.IsTrue(file.Exists);
            file.Delete();
        }
    }
}